package com.lk.netty.session;

import io.netty.channel.Channel;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;


public class SessionFactory {

    public static Map<String, Channel> map = new HashMap<>();


    public static void setChannel(String key, Channel channel) {
        map.put(key, channel);
    }

    public static Channel getChannel(String key) {
        return map.get(key);
    }
}
